<div id="userlist">
<br/>
<center>
<hr style="color:#e6af2b"/>
<form action="<?php if( isset( $action ) ) echo $action; ?>" method="POST">

<table>
	<tr>
		<td>Exam Name</td>
		<td>Duration</td>
		<td>Start time</td>
		<td>End time</td>
	</tr>
	<tr>
		<td><input type="text" name="name" /></td>
		<td><input type="text" name="duration"/></td>
		<td><input type="text" name="start_time"/></td>
		<td><input type="text" name="end_time"/></td>
	</tr>
</table>

<table>
	<th>Select</th>
	<th width="200">Lesson</th>
	<!--<th>No. of Questions</th>-->

	<?php foreach( $lessons as $lesson ) : ?>
	<tr>

		<td><input type="checkbox" name="lesson[]" value="<?php View::show($lesson['lesson_id']) ?>" /></td>
		<td>
			<?php View::show($lesson['title'])?>
		</td>
		
	</tr>
		<?php endforeach;?>
	<tr>
		<td>Items:<input type="text" name="items" size="1" /></td>
		<td><input type="submit" value="Save Exam"/></td>
	</tr>
	
</table>
</form>
</center>

</div>
